package com.bianguo.android.iocdemo.item;

import android.widget.TextView;

import com.bianguo.android.iocdemo.R;
import com.bianguo.android.recyclerlibrary.holder.RViewHolder;
import com.bianguo.android.recyclerlibrary.listener.RViewItem;

public class SplashItem implements RViewItem<String> {

    @Override
    public int getItemLayout() {
        return R.layout.item_splash_layout;
    }

    @Override
    public boolean openClick() {
        return false;
    }

    @Override
    public boolean isItemView(String data, int position) {
        return true;
    }

    @Override
    public void convert(RViewHolder holder, String data, int position) {
        TextView contentTv = holder.getView(R.id.item_splash_content);
        contentTv.setText(data);
    }
}
